package com.ztgf.commodity.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.commodity.models.dto.CommodityAuditLogDTO;
import com.ztgf.commodity.models.vo.CommodityAuditLogVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-05-26 16:51
 * Description:
 */
@Mapper
public interface CommodityAuditLogMapper extends BaseMapper<CommodityAuditLogDTO> {

    /**
     * description: 后台管理系统商品审核日志列表
     * param: [pages, vo]
     * author: chenyu.wang
     * date: 2020-05-28
     * return: java.util.List<com.ztgf.commodity.models.vo.CommodityAuditLogVO>
     */
    List<CommodityAuditLogVO> queryCommodityAuditLogList(Page<CommodityAuditLogVO> pages, @Param("item") CommodityAuditLogVO vo);

    /**
     * description: 根据id查找商品审核日志表
     * param: [id]
     * author: chenyu.wang
     * date: 2020-05-28
     * return: com.ztgf.commodity.models.vo.CommodityAuditLogVO
     */
    CommodityAuditLogVO getByLogId(@Param("id") Long id);
}
